package com.fhs.trans.config;

import com.fhs.core.trans.config.TransConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 反式服务属性
 *
 * @author Alen
 * @date 2021-05-19 18:49
 * @since 2021-05-19 18:49
 */
@Component
@ConfigurationProperties(prefix = "easy-trans.autotrans")
public class TransServiceProperties implements TransConfig {

    /**
     * service的包路径
     */
    private String packageNames;

    /**
     * 是否启用redis
     */
    private boolean enableRedis = false;

    @Override
    public String getPackageNames() {
        return packageNames;
    }

    public void setPackageNames(String packageNames) {
        this.packageNames = packageNames;
    }

    @Override
    public boolean isEnableRedis() {
        return enableRedis;
    }

    public void setEnableRedis(boolean enableRedis) {
        this.enableRedis = enableRedis;
    }
}
